﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace theguineasyndrome.editor.forms
{
    public partial class MarkNameForm : Form
    {
        private EditorMode editorMode;

        public MarkNameForm(EditorMode editorMode)
        {
            InitializeComponent();
            this.editorMode = editorMode;
        }

        private void cancelButton_Click(object sender, EventArgs e)
        {
            Close();
            markNameTextbox.Text = "";
            editorMode.removeNextPointMark();
        }

        private void okButton_Click(object sender, EventArgs e)
        {
            Close();
            editorMode.setMarkName(markNameTextbox.Text);
            markNameTextbox.Text = "";
        }
    }
}
